package cn.edu.scau.cmi.linhuanrui.composite.consistent;

import java.util.Set;

public abstract class ConsitentOrganization {
	protected String name;
	ConsitentOrganization parent = null;

	public ConsitentOrganization(String name) {
		this.name = name;
	}

	abstract ConsitentOrganization getParent();

	abstract void addChild(ConsitentOrganization child);

	abstract void deleteChild(ConsitentOrganization child);

	abstract Set<ConsitentOrganization> getChildren();

	abstract void show(int level);

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
